package com.bd.scm.dao.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bd.scm.domain.dto.user.UserDto;
import com.bd.scm.domain.models.user.DtUser;
import com.bd.scm.domain.models.user.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 员工Mapper接口
 * User: _Cps
 * Date: 2019.08.28 16:45
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    IPage<UserInfo> getUserList(Page<UserInfo> userInfoPage, UserDto userDto);

    /**
     * 根据条件（部门ID和人员ID字符串）获取人员信息.
     *
     * @param userDto
     * @return
     */
    List<UserInfo> getUserListByParam(UserDto userDto);

    /**
     * 根据工号查询员工
     * @param userDto
     * @return
     */
    UserInfo getUserInfoByUserNo(UserDto userDto);

    /**
     * 根据条件（部门ID和人员ID字符串）获取人员信息.
     *
     * @param userDto
     * @return
     */
    public List<UserInfo> getUserListByTree(UserDto userDto);
}
